<?php $this->headTitle('Spis Artykułów');?>

<div class ="article">
	<div class ="article_top">
		<strong>Spis Artykułów</strong>
	</div> 
	<div class ="article_bottom">
		<p><a href="<?php echo $this->url(array('controller' => 'art', 'action' => 'create'));?>"> Dodaj nowy artykuł</a></p>
		<table>
			<tr>
				<th>Tytuł</th>
				<th>Dział </th>
				<th>Opcje</th>
			</tr>
			<?php foreach($this->lista as $lista): ?>
			<tr>
				<td><?php echo $this->escape($lista['name']);?></td>
				<td><?php echo $this->escape($lista['dzial']);?></td>
				<td><a href="<?php echo $this->url(array('controller' => 'art', 'action' => 'edit', 'id' => $lista['id']));?>">Edytuj</a>
					<a href="<?php echo $this->url(array('controller' => 'art', 'action' => 'delete', 'id' => $lista['id']));?>">Usuń</a>
				</td>
			</tr>
			<?php endforeach;?>
		</table>
	</div>
</div> 


